// src/utils/logger.ts
import chalk from 'chalk';

export const logger = {
  info: (message: string, ...args: any[]) => {
    console.log(chalk.blue('ℹ️'), message, ...args);
  },
  
  success: (message: string, ...args: any[]) => {
    console.log(chalk.green('✅'), message, ...args);
  },
  
  warning: (message: string, ...args: any[]) => {
    console.log(chalk.yellow('⚠️'), message, ...args);
  },
  
  error: (message: string, ...args: any[]) => {
    console.log(chalk.red('❌'), message, ...args);
  },
  
  debug: (message: string, ...args: any[]) => {
    if (process.env.DEBUG) {
      console.log(chalk.gray('🔍'), message, ...args);
    }
  }
};